package com.hpf.gupao.pattern.factory.abstractfactory;

/**
 * @description:
 * @datetime: 2021/5/16 20:00
 * @author: huangpengfei
 */
public class Test {

    public static void main(String[] args){
        CourseFactory courseFactory = new JavaCourseFactory();
        courseFactory.createNote().update();
        courseFactory.createVideo().record();
        CourseFactory pythonCourseFactory = new PythonCourseFactory();
        pythonCourseFactory.createNote().update();
        pythonCourseFactory.createVideo().record();
    }
}
